package org.crazyit.cloud;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.client.RestTemplate;

@RestController
@Configuration
public class MyController {
	
	@Bean
	@MyLoadBalanced
	public RestTemplate tplA() {
		return new RestTemplate();
	}
	
	@Bean
	@MyLoadBalanced
	public RestTemplate tplB() {
		return new RestTemplate();
	}
	
}


























